{
	template:`
    <m-page @back="back" :title="title">
        <m-top></m-top>
        <m-title>{{title}}</m-title>
		<m-top></m-top>
		<m-list ref="list" :url="url" :params="params" :bottom="0" :search="search">
			<template #item="{item}">
				<m-card join @click="openDetail(item.oid)">
					<div class="flex padding-sm align-center">
                        <div class="flex-sub">
                            <div class="flex align-center">
                                <div class="cu-tag radius" :class="'bg-'+item.user.store.color">{{item.user.store.name}}</div>
                                <div class="padding-left-xs">{{item.user.realName}}</div>
                            </div>
                            <div>{{item.yearMonth}} 实发{{formatAmount(item.payAmount)}}元</div>
                            <div v-if="item.status=='Y'" class="text-sm text-green">{{item.confirmUser.realName}}已发放 {{formatDate(item.confirmDate,'yyyy-MM-dd')}}</div>
                            <div v-else class="text-sm text-red">未发放</div>
                        </div>
                        <div class="text-right text-sm text-grey">
                            月薪：<br/>
                            提成：<br/>
                            奖励：
                        </div>
                        <div class="text-right text-sm">
                            {{formatAmount(item.wages)}}元<br/>
                            {{formatAmount(item.wagesAmount)}}元<br/>
                            {{formatAmount(item.rewardAmount)}}元
                        </div>
					</div>
				</m-card>
			</template>
		</m-list>
    </m-page>
	`,
	props: ['param','parentVue'],
	data:function(){
		return {
            title:'员工工资',
            url:'action/order/monthWages/getAllList',
            params:{type:''},
            search:[
            ]
		};
	},
	mounted(){
	    this.params.type=this.param.type;
	    if(this.params.type=='store') this.title='店铺'+this.title;
	    if(this.params.type=='business') this.title='商家'+this.title;
	},
	methods:{
	    openDetail:function(oid){
	        this.openPage('order/wages/monthWagesDetailList.js',{oid:oid},(flag,obj)=>{
	            if(flag){}
	        });
	    }
	}
}